import React, { Component } from 'react'
import Navbar from './component/Navbar'
import routes from './routes'
import {renderRoutes,RouteConfig} from 'react-router-config'
import './App.css';
import {connect} from "react-redux"

class App extends Component {
  render() {
    return (
        <div className="App">
          <Navbar />
            {renderRoutes(routes as RouteConfig[])}
        </div>

    );
  }

}

//进行连接
export default connect((props,state)=>Object.assign({},props,state),{})(App);